# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xfce4-whiskermenu-plugin
pkgver=2.8.2
pkgrel=0
pkgdesc="Alternate application launcher for Xfce"
url="https://goodies.xfce.org/projects/panel-plugins/xfce4-whiskermenu-plugin"
arch="all"
license="GPL-2.0-or-later"
options="!check" # No test suite
makedepends="
	accountsservice-dev
	cmake
	exo-dev
	garcon-dev
	gtk-layer-shell-dev
	libxfce4ui-dev
	libxfce4util-dev
	samurai
	xfce4-panel-dev
	"
subpackages="$pkgname-doc $pkgname-lang"
source="https://archive.xfce.org/src/panel-plugins/xfce4-whiskermenu-plugin/${pkgver%.*}/xfce4-whiskermenu-plugin-$pkgver.tar.bz2"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_BUILD_TYPE=MinSizeRel
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
c3cfd1032ce313976ecc42c33b5a4a2727c89a7cb7c053227cfa8ee3c2cf722ba6a360c7ac819456c1bf89dd5c3c768276220da13fe3e5cb955d8c9ad4852824  xfce4-whiskermenu-plugin-2.8.2.tar.bz2
"
